package com.tinyideatech.system.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.tinyideatech.common.core.entity.BaseEntity;

import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @author zhangy-5
 * @date 2019-08-26
 */
@Data
@TableName("mall_order")
public class MallOrder extends BaseEntity {

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @TableId
    private Long orderId;
    private Long userId;
    private String username;

    private String deviceId;

    private String orderStatus;  // 未付款，已付款，已发货，交易成功，交易关闭

    private Double totalPrice;
    private String remark;

    private String paymentResult;
    private Date paymentTime;

    private Date deliverTime;
    private String deliverCode;

    private String status;
    private Integer size;

    @TableField(exist = false)
    private List<MallOrderItem> orderItemList;

    @TableLogic
    private String delFlag;

}
